package com.cloudpolice.door.feignInterface.hystric;

import com.cloudpolice.door.feignInterface.DoorAuthorityInterFace;
import lh.model.ResultVO;
import lh.model.ResultVOPage;
import lh.units.ResultStruct;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

@Service
public class DoorAuthorityInterFaceHystric implements DoorAuthorityInterFace {
    private final String hystricMessage = "亲，服务器正忙，请稍后再戳。";

    @Override
    public ResultVOPage getDoorPictureAuthorityTest(
            @RequestParam(value = "page", defaultValue = "1") int page,
            @RequestParam(value = "limit", defaultValue = "10") int limit) {
        return ResultStruct.error(hystricMessage, ResultVOPage.class, null);
    }


    @Override
    public ResultVOPage getDoorCardAuthorityTest(
            @RequestParam(value = "page", defaultValue = "1") int page,
            @RequestParam(value = "limit", defaultValue = "10") int limit) {
        return ResultStruct.error(hystricMessage, ResultVOPage.class, null);
    }

    @Override
    public ResultVOPage getDoorCardAuthority(@RequestParam(value = "communityId") String communityId
            , @RequestParam(value = "periodId") String periodId
            , @RequestParam(value = "buildId", required = false) String buildId
            , @RequestParam(value = "unitId", required = false) String unitId
            , @RequestParam(value = "page", defaultValue = "1") int page
            , @RequestParam(value = "limit", defaultValue = "10") int limit) {
        return ResultStruct.error(hystricMessage, ResultVOPage.class, null);
    }

    @Override
    public ResultVOPage getDoorPictureAuthority(@RequestParam(value = "communityId") String communityId
            , @RequestParam(value = "periodId") String periodId
            , @RequestParam(value = "buildId", required = false) String buildId
            , @RequestParam(value = "unitId", required = false) String unitId
            , @RequestParam(value = "page", defaultValue = "1") int page
            , @RequestParam(value = "limit", defaultValue = "10") int limit) {
        return ResultStruct.error(hystricMessage, ResultVOPage.class, null);
    }

}
